package com.addplus.townmall.server.api.model.town;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分销商品规则表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("distribution_shop_rule")
public class DistributionShopRule extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 商品主键id
     */
    @TableField("shop_id")
    private Integer shopId;
    /**
     * 店铺主键id
     */
    @TableField("store_id")
    private Integer storeId;
    /**
     * 商品类型(1:普通 2:拼团)
     */
    private Integer type;
    /**
     * 商城店铺类型(0:自营 1:企业店铺)
     */
    @TableField("store_type")
    private Integer storeType;
    /**
     * 商品分销状态(0:推广中 1:停止推送)
     */
    @TableField("shop_status")
    private Integer shopStatus;
    /**
     * 一级分销比例
     */
    @TableField("primary_distribution_rate")
    private BigDecimal primaryDistributionRate;
    /**
     * 二级分销比例
     */
    @TableField("secondary_distribution_rate")
    private BigDecimal secondaryDistributionRate;
    /**
     * 三级分销比例
     */
    @TableField("tertiary_distribution_rate")
    private BigDecimal tertiaryDistributionRate;
    /**
     * 成交件数
     */
    @TableField("sale_count")
    private Integer saleCount;
    /**
     * 成交金额
     */
    @TableField("sale_amount")
    private BigDecimal saleAmount;
    /**
     * 已结算金额
     */
    @TableField("settlement_amount")
    private BigDecimal settlementAmount;
    /**
     * 添加推广时间
     */
    @TableField("add_date")
    private LocalDateTime addDate;
    /**
     * 是否删除(0:否 1:是)
     */
    @TableField("is_delete")
    private Integer isDelete;


}
